package com.io;

import java.util.Scanner;

/**
 * Created by Nikita on 19.06.2014.
 */
public class BASEIO {

    public static final int TRUE = 1;

    public static final int FALSE = 0;

    public static void WriteInteger(int i) {
        System.out.print(i);
    }

    public static void WriteCharacter(char c) {
        System.out.print(c);
    }

    public static void WriteReal(float f) {
        System.out.print(f);
    }

    public static void WriteString(char[] s) {
        System.out.print(s);
    }

    public static void WriteSet(Set s) {
        System.out.print(s.toString());
    }

    public static int ReadInteger() {
        Scanner in = new Scanner(System.in);
        return in.nextInt();
    }

    public static char ReadCharacter() {
        Scanner in = new Scanner(System.in);
        return (char)in.nextInt();
    }

    public static float ReadReal() {
        Scanner in = new Scanner(System.in);
        return in.nextFloat();
    }

    public static char[] ReadString() {
        Scanner in = new Scanner(System.in);
        return in.next().toCharArray();
    }

    public static char CHR(int n) {
        return (char)n;
    }

    public static char CAP(char c) {
        return Character.toUpperCase(c);
    }

    public static int LEN(char[] s) {
        return s.length;
    }

    public static void COPY(char[] src, char[] dst) {
        for(int i = 0; i < src.length; i++) {
            dst[i] = src[i];
        }
    }

    public static int DEC(int n) {
        return n - 1;
    }

    public static int INC(int n) {
        return n + 1;
    }

}